package cn.hist.hfp.repository;

import cn.hist.hfp.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    User findByLoginNameAndPassword(String loginName, String password);

    User findByLoginName(String loginName);
}
